package com.htzos.admin.log.bean;
import java.util.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class LogReqBase implements java.io.Serializable{
//ID;
  private Integer id;

//请求地址;
  private String page;

//请求参数;
  private String params;

//使用用户;
  private String account;

//请求时间;
  private Date reqtime;

//请求者IP;
  private String ip;

  public Integer getId(){
  	return this.id;
  }

  public void setId(Integer id){
     this.id=id;
  }

  public String getPage(){
  	return this.page;
  }

  public void setPage(String page){
     this.page=page;
  }

  public String getParams(){
  	return this.params;
  }

  public void setParams(String params){
     this.params=params;
  }

  public String getAccount(){
  	return this.account;
  }

  public void setAccount(String account){
     this.account=account;
  }

  public Date getReqtime(){
  	return this.reqtime;
  }

  public void setReqtime(Date reqtime){
     this.reqtime=reqtime;
  }

    public String getStrReqtime(){
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
        return this.reqtime==null?"":sdf.format(this.reqtime);
    }

    public void setStrReqtime(String strreqtime){
         SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
         try { 
             this.reqtime= sdf.parse(strreqtime);
         } catch (ParseException e) { 

    	    }
    }

  public String getIp(){
  	return this.ip;
  }

  public void setIp(String ip){
     this.ip=ip;
  }

}